﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageCallAspect.Inspector.MessageSink;
using MessageCallAspect.Inspector.Request;
using System.Runtime.Remoting.Messaging;
using System.Diagnostics;

namespace MessageCallAspect.Demo.Aspect.LicenseEnforce
{
    [DebuggerStepThrough]
    internal class LicenseEnforceMessageSink : SimpleMessageInspector
    {
        public LicenseEnforceMessageSink(IServiceProvider context, object target, IMessageSink nextSink)
            :base(context, target, nextSink)
        {

        }
        protected override void OnBeforeInvoke(IMessageRequest request)
        {
            base.OnBeforeInvoke(request);
            //throw new InvalidOperationException("licensing error");
        }
    }
}
